#ifndef FLIT_QUEUE_H
#define FLIT_QUEUE_H 
#include "flit.h"

typedef struct flit_queue
{
  flit_t *head; 
  flit_t *tail; 
  unsigned int num_flits; 
} flit_queue_t;

flit_t *read(flit_queue_t *queue); 
flit_t *recv(flit_queue_t *queue);
void   send(flit_queue_t  *queue, flit_t **flit_ptr);
void   init_queue(flit_queue_t *queue);  
#endif
